package com.brillilab.service.core.experiments;

import java.util.List;

import com.brillilab.domain.po.experiments.ExperimentStepTimer;

public interface IExperimentStepTimerService {
    boolean endTimerById(Long id);

    boolean insert(ExperimentStepTimer timer);

    boolean updateById(ExperimentStepTimer timer);

    List<ExperimentStepTimer> selectList(Long experimentId,Long phaseId,Long stepId);

    ExperimentStepTimer selectById(Long timerId);

    boolean updateBatch(List<ExperimentStepTimer> timers);

    void deleteById(Long timerId);

    boolean insertBatch(List<ExperimentStepTimer> stepTimersToInsert);

    List<ExperimentStepTimer> selectStepTimerList(Long experimentId);

    boolean deleteByExperimentId(Long experimentId);

    void endTimersByExperimentId(Long experimentId);
}
